<?php

class AdApp extends MallbaseApp
{

	function index(){

		if (isset($_FILES["video-blob"])) {

			$fileName = $_POST["${type}-filename"];
			$uploadDirectory = "uploads/$fileName";

			if (!move_uploaded_file($_FILES["${type}-blob"]["tmp_name"], $uploadDirectory)) {
				echo("problem moving uploaded file");
			}

			echo($uploadDirectory);

		}
	}
}
